require 'csv_to_table'
require 'test/unit'

class TestCsvToTable < Test::Unit::TestCase
	
	def test_database_connection
		some_obj = CsvToTable.new 
		#new_conn = some_obj.get_database_connection("summer_development")
		assert_equal(new_conn.class.downcase, "connection")
	end	

        def test_database_connection
		some_obj = CsvToTable.new
		#new_conn = some_obj.get_database_connection("some_non_existent_database")
		assert_raise(RuntimeError)
	end		
end	